package com.jenvin.idcreator;

import java.util.concurrent.atomic.AtomicLong;

public class SampleIdCreatorProvider implements IdCreatorProvider {

    private static AtomicLong atomic = new AtomicLong(0);

    @Override
    public long aquireIdBuffer(long bufferSize,long seed,String name,String description) {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return atomic.getAndAdd(bufferSize);
    }

}
